let app = getApp();
let util = app.globalData.util;
let wxApi = app.globalData.wxApi;
Page({
  data: {
    codes: []
  },
  onLoad( options ) {
    this.continueVal = false;
    wxApi.setNavTitle('测试结算')
    let codes = util.decodeURI( options.codes );
    this.setData({
      codes: codes
    })
  },
  onUnload() {
    if ( !this.continueVal ) {
      wxApi.lastPage().back();
    }
  },
  back() {
    this.continueVal = true;
    wx.navigateBack({
      delta: 2
    })
  },
  continue() {
    this.continueVal = true;
    wx.navigateBack({
      delta: 1
    })
  }
}) 